home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue52 / HTML / Code / AppServer / dpoEvent.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-10-23  |  569 b   |  35 lines

  1. unit dpoEvent;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   dpoBase, Db, DBTables;
  8.  
  9. type
  10.   TEvent = class(TDataObject)
  11.   private
  12.   public
  13.     constructor Create(aDB: TDatabase); override;
  14.   end;
  15.  
  16. var
  17.   Event: TEvent;
  18.  
  19. implementation
  20.  
  21. {$R *.DFM}
  22.  
  23. { TEvents }
  24.  
  25. constructor TEvent.Create(aDB: TDatabase);
  26. begin
  27.   inherited Create(aDB);
  28.   { Inform the base class of the field(s) that comprise the OID }
  29.   OIDFieldNames.Text := 'EventNo';
  30. end;
  31.  
  32. initialization
  33.   RegisterClass(TEvent);
  34. end.
  35.